package com.library.dcy.dao;


import com.library.dcy.entity.BorrowInfo;
import com.library.dcy.entity.RepayInfo;

import java.util.List;
import java.util.Map;

/**
 * 业务类
 */
public interface BookDao {
    //按读者id分页查询借书记录
    List<BorrowInfo> borrow(Map map) throws Exception;
    //分页查询借书总记录数
    Integer borrowcount(Integer id) throws Exception;
    //按读者id分页查询还书记录
    List<RepayInfo> repay(Map map) throws Exception;
    //分页查询还书总记录数
    Integer repaycount(Integer id) throws Exception;
}
